package com.BigDate.server.service;

import com.BigDate.server.pojo.Project;
import com.BigDate.server.pojo.RespPageBean;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author stx
 * @since 2021-12-22
 */
public interface IProjectService extends IService<Project> {

    /**
     * 获取项目(分页)
     * @param currentPage
     * @param size
     * @param project
     * @return
     */
    RespPageBean getProjectByPage(Integer currentPage, Integer size, Project project);

    /**
     * 获取内容
     * @param id
     * @return
     */
    String getContent(Integer id);

    List<Project> findLimitPr();

    List<Project> findLimitIt();

    List<Project> findLimitHi();

    Project findById(Integer id);

    /**
     * 运行Python
     * @param projectId
     * @param userId
     */
    void runPython(Integer projectId, Integer userId);
}
